<template>
    <el-card>
      <template #header>
        <div class="card-header">
          <span class="card-title">Card name</span>
          <span>占位</span>
        </div>
      </template>
    </el-card>
  </template>
  
  <style scoped>
  .card-header {
    display: flex;
    justify-content: space-between; /* 将内容分别推到两端 */
    align-items: center; /* 垂直居中对齐 */
  }
  </style>